<!DOCTYPE html	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	template="/template/template.xhtml">
	<ui:define name="head">
	<style>
	.ui-tree.ui-tree-horizontal .ui-tree-toggler {
    	vertical-align: baseline !important;
	}
	.ui-tree.ui-tree-horizontal .ui-treenode {
    	padding: 5px 15px;
	} 
	.ui-tree-horizontal .ui-treenode-parent .ui-treenode-content {
    	white-space: pre-wrap !important;
	}
	[data-nodetype=root] > div {
		background:  #00c0ef !important; 
		color:  white !important;
		font-weight: 700 !important;
		width: 80px;
	}
	[data-nodetype=group] > div {
		background: #00c0ef !important; 
		color: 	white !important;
		font-weight: 700 !important;
		width: 95px;
	}
	[data-nodetype=level] > div {
		background: Teal !important; 
		color: 	white !important;
		font-weight: 700 !important;
		width: 100px;
	}  
	[data-nodetype=childGroup] > div {
		background: #00c0ef !important; 
		color: 	white !important;
		font-weight: 700 !important;
		width: 140px;
	}
    [data-nodetype=kpiCorrect] > div {
		background: #00a65a !important;  
		color: white !important;
		font-weight: 700 !important;
		width: 200px;
	}
	[data-nodetype=kpiError] > div {
		background: #dd4b39 !important; 
		color:  white !important;
		font-weight: 700 !important;
		width: 200px;
	}   
	
    [data-nodetype=kpiWeightCorrect] > div {
		background: #00a65a !important;  
		color: white !important;
		font-weight: 700 !important;
		width: 200px;
	}
	[data-nodetype=kpiWeightError] > div {
		background: #dd4b39 !important; 
		color:  white !important;
		font-weight: 700 !important;
		width: 200px;
	}   
	
	[data-nodetype=dsWeightCorrect] > div {
		background: #00a65a !important;  
		color: white !important;
		font-weight: 700 !important;
		width: 200px;
	}
	[data-nodetype=dsWeightError] > div {
		background: #dd4b39 !important; 
		color:  white !important;
		font-weight: 700 !important;
		width: 200px;
	}
	[data-nodetype=dsSizeCorrect] > div {
		background: #00a65a !important;  
		color: white !important;
		font-weight: 700 !important;
		width: 200px;
	}
	[data-nodetype=dsSizeError] > div {
		background: #dd4b39 !important; 
		color:  white !important;
		font-weight: 700 !important;
		width: 200px;
	}
	
	.nodeText{
		border:0px;
	    font-weight: normal;
	    color: white !important;
	}
	.marginRight{
		margin-right:10px;
	}
	.marginLeft{
		margin-left:10px;
	}
	.numLargeText{
		font-size:15px;
		color:white !important;
	}
	.numSmallText{
		font-size:15px;
		font-weight: normal;
		color:white !important;
	}
	
	</style>
	</ui:define>
	<ui:define name="content">
	<div class='full-center-content-scroll-noheader'>
		<div class="row">
			<h:form id="form1">
				<p:growl id="msgs" showDetail="true" />
				<div class="col-lg-12 col-xs-12">
					<div class="nav-tabs-custom">
						<ul class="nav nav-tabs pull-left">
							<li class="active"><a id="tab1" href="#pane1" data-toggle="tab">指标类别</a></li>
							<li><a id="tab2" href="#pane2" data-toggle="tab">指标级别</a></li>
							<li><a id="tab3" href="#pane3" data-toggle="tab">数据源</a></li>
							<!-- <li><a id="tab3" href="#pane3" data-toggle="tab">关系图</a></li> -->
						</ul>
						<div class="tab-content no-padding" >
							<!-- <div class="chart tab-pane" id="pane4"
								style="position: relative">
								<div id="graphchart" style="height:500px;width:500px;"></div>
							</div> -->
						<!-- panel1 -->
							<div class="chart tab-pane active" id="pane1"
								style="position: relative">
								<p:toolbar>
									<f:facet name="left">
										<button type="button" style="background:#00a65a" class="btn btn-flat margin"></button>成熟指标或数据源
										<button type="button" style="background:#dd4b39" class="btn btn-flat margin"></button>不成熟指标或数据源
									</f:facet>
									<f:facet name="right">
										<p:selectBooleanButton value="#{kpiGroupViewController.realiIsShow}" 
											onLabel="隐藏成熟度" offLabel="显示成熟度" >
											 <p:ajax update="tree1"/>
										</p:selectBooleanButton>
									</f:facet>
								</p:toolbar>
								<p:tree id="tree1" var="node" widgetVar="tree1" dynamic="true" 
									orientation="horizontal" value="#{kpiGroupViewController.root}"
									selection="#{kpiGroupViewController.selectedNode}" 
									selectionMode="single" >
								<!-- root -->
									<p:treeNode type="root">
										<p:outputLabel value="#{node}" />
									</p:treeNode>
								<!-- level -->
									<p:treeNode type="level">
										<h:outputText value="#{node}" />
									</p:treeNode>
								<!-- group -->
									<p:treeNode type="group">
										<h:outputText value="#{node}" />
									</p:treeNode>
									<p:treeNode type="childGroup">
										<h:outputText value="#{node}" />
									</p:treeNode>
								<!-- kpi -->
									<p:treeNode type="kpiError">
										<p:commandLink value="#{node.name}"
											styleClass="nodeText"
											actionListener="#{kpiGroupViewController.onKpiSelect(node)}"
											update="kpiDiaForm:kpiDia" oncomplete="PF('kpiDia').show();" />
										<h:outputText value="#{node.reliabilityValue}"
											rendered="#{kpiGroupViewController.realiIsShow}"
											styleClass="numLargeText marginLeft" />
									</p:treeNode>
									<p:treeNode type="kpiCorrect" style="text-align:center">
										<p:commandLink value="#{node.name}"
											styleClass="nodeText"
											actionListener="#{kpiGroupViewController.onKpiSelect(node)}"
											update="kpiDiaForm:kpiDia" oncomplete="PF('kpiDia').show();" />
										<h:outputText value="#{node.reliabilityValue}"
											rendered="#{kpiGroupViewController.realiIsShow}"
											styleClass="numLargeText marginLeft" />
									</p:treeNode>
									<p:treeNode type="kpiWeightCorrect" style="text-align:center">
										<p:commandLink value="#{node.child.name}"
											styleClass="nodeText"
											actionListener="#{kpiGroupViewController.onKpiSelect(node.child)}"
											update="kpiDiaForm:kpiDia" oncomplete="PF('kpiDia').show();" />
										<h:outputText value="#{node.child.reliabilityValue}"
											rendered="#{kpiGroupViewController.realiIsShow}"
											styleClass="numLargeText marginLeft marginRight" />
										<h:outputText value="X" styleClass="numSmallText" 
											rendered="#{kpiGroupViewController.realiIsShow}"/>
										<p:inplace editor="true" styleClass="numSmallText marginLeft"
											rendered="#{kpiGroupViewController.realiIsShow}">
											<p:ajax event="save"
												listener="#{kpiGroupViewController.saveKpiWeight(node.kpiweight)}"
												update="tree1 form1:msgs" />
											<p:spinner value="#{node.kpiweight.value}" required="true" size="2"
												stepFactor="0.1" max="1" min="0" label="#{node.kpiweight.value}" />
										</p:inplace>
									</p:treeNode>
									<p:treeNode type="kpiWeightError">
										<p:commandLink value="#{node.child.name}"
											styleClass="nodeText"
											actionListener="#{kpiGroupViewController.onKpiSelect(node.child)}"
											update="kpiDiaForm:kpiDia" oncomplete="PF('kpiDia').show();" />
										<h:outputText value="#{node.child.reliabilityValue}"
											rendered="#{kpiGroupViewController.realiIsShow}"
											styleClass="numLargeText marginLeft marginRight" />
										<h:outputText value="X" styleClass="numSmallText" 
											rendered="#{kpiGroupViewController.realiIsShow}"/>
										<p:inplace editor="true" styleClass="numSmallText marginLeft"
											rendered="#{kpiGroupViewController.realiIsShow}">
											<p:ajax event="save"
												listener="#{kpiGroupViewController.saveKpiWeight(node.kpiweight)}"
												update="tree1 form1:msgs" />
											<p:spinner value="#{node.kpiweight.value}" required="true" size="2"
												stepFactor="0.1" max="1" min="0" label="#{node.kpiweight.value}" />
										</p:inplace>
									</p:treeNode>
								<!-- dataSource -->
									<p:treeNode type="dsWeightCorrect">
										<p:commandLink styleClass="nodeText" value="#{node.child.name}"
											actionListener="#{kpiGroupViewController.onSourceSelect(node.child)}"
											update="sourceDiaForm:sourceDia" oncomplete="PF('sourceDia').show();" />
										<p:inplace editor="true" rendered="#{kpiGroupViewController.realiIsShow}"
											styleClass="numLargeText marginRight marginLeft">
											<p:ajax event="save"
												listener="#{kpiGroupViewController.saveDsReliabilityParam(node.child)}"
												update="tree1 form1:msgs" />
											<p:spinner value="#{node.child.reliabilityParam}"
												required="true" size="2" stepFactor="1" max="100" min="0"
												label="#{node.child.reliabilityParam}" />
										</p:inplace>
										<h:outputText value="X" styleClass="numSmallText"
											rendered="#{kpiGroupViewController.realiIsShow}" />
										<p:inplace editor="true" styleClass="numSmallText marginLeft"
											rendered="#{kpiGroupViewController.realiIsShow}">
											<p:ajax event="save"
												listener="#{kpiGroupViewController.saveKpiWeight(node.kpiweight)}"
												update="tree1 form1:msgs" />
											<p:spinner value="#{node.kpiweight.value}" required="true" size="2"
												stepFactor="0.1" max="1" min="0" label="#{node.kpiweight.value}" />
										</p:inplace>
									</p:treeNode>
									<p:treeNode type="dsWeightError" style="width:10px">
										<p:commandLink value="#{node.child.name}" styleClass="nodeText"
											actionListener="#{kpiGroupViewController.onSourceSelect(node.child)}"
											update="sourceDiaForm:sourceDia" oncomplete="PF('sourceDia').show();" />
										<p:inplace editor="true" rendered="#{kpiGroupViewController.realiIsShow}"
											styleClass="numLargeText marginRight marginLeft">
											<p:ajax event="save"
												listener="#{kpiGroupViewController.saveDsReliabilityParam(node.child)}"
												update="tree1 form1:msgs" />
											<p:spinner value="#{node.child.reliabilityParam}"
												required="true" size="2" stepFactor="1" max="100" min="0"
												label="#{node.child.reliabilityParam}" />
										</p:inplace>
										<h:outputText value="X" styleClass="numSmallText" 
											rendered="#{kpiGroupViewController.realiIsShow}"/>
										<p:inplace editor="true" styleClass="numSmallText marginLeft"
											rendered="#{kpiGroupViewController.realiIsShow}">
											<p:ajax event="save"
												listener="#{kpiGroupViewController.saveKpiWeight(node.kpiweight)}"
												update="tree1 form1:msgs" />
											<p:spinner value="#{node.kpiweight.value}" required="true" size="2"
												stepFactor="0.1" max="1" min="0" label="#{node.kpiweight.value}" />
										</p:inplace>
									</p:treeNode>
								</p:tree>
							</div>
						<!-- panel2 -->
							<div class="chart tab-pane" id="pane2" style="position: relative">
								<p:toolbar>
									<f:facet name="left">
										<button type="button" style="background:#00a65a" class="btn btn-flat margin"></button>成熟指标或数据源
										<button type="button" style="background:#dd4b39" class="btn btn-flat margin"></button>不成熟指标或数据源
									</f:facet>
									<f:facet name="right">
										<p:selectBooleanButton value="#{kpiLevelViewController.realiIsShow}" 
											onLabel="隐藏成熟度" offLabel="显示成熟度" >
											 <p:ajax update="tree2"/>
										</p:selectBooleanButton>
									</f:facet>
								</p:toolbar>
								<p:tree id="tree2" var="node" widgetVar="tree2" dynamic="true" 
									orientation="horizontal" value="#{kpiLevelViewController.root}"
									selection="#{kpiLevelViewController.selectedNode}"
									selectionMode="single" animate="true">
								<!-- root -->
									<p:treeNode type="root">
										<p:outputLabel value="#{node}" />
									</p:treeNode>
								<!-- level -->
									<p:treeNode type="level">
										<h:outputText value="#{node}" />
									</p:treeNode>
								<!-- kpi -->
									<p:treeNode type="kpiCorrect">
										<p:commandLink value="#{node.name}"
											styleClass="nodeText"
											actionListener="#{kpiGroupViewController.onKpiSelect(node)}"
											update="kpiDiaForm:kpiDia" oncomplete="PF('kpiDia').show();" />
										<h:outputText value="#{node.reliabilityValue}"
											rendered="#{kpiLevelViewController.realiIsShow}"
											styleClass="numLargeText marginLeft" />
									</p:treeNode>
									<p:treeNode type="kpiError">
										<p:commandLink value="#{node.name}"
											styleClass="nodeText"
											actionListener="#{kpiGroupViewController.onKpiSelect(node)}"
											update="kpiDiaForm:kpiDia" oncomplete="PF('kpiDia').show();" />
										<h:outputText value="#{node.reliabilityValue}"
											rendered="#{kpiLevelViewController.realiIsShow}"
											styleClass="numLargeText marginLeft" />
									</p:treeNode>
									<p:treeNode type="kpiWeightCorrect" style="text-align:center">
										<p:commandLink value="#{node.child.name}"
											styleClass="nodeText"
											actionListener="#{kpiGroupViewController.onKpiSelect(node.child)}"
											update="kpiDiaForm:kpiDia" oncomplete="PF('kpiDia').show();" />
										<h:outputText value="#{node.child.reliabilityValue}"
											rendered="#{kpiLevelViewController.realiIsShow}"
											styleClass="numLargeText marginLeft marginRight" />
										<h:outputText value="X" styleClass="numSmallText" 
											rendered="#{kpiLevelViewController.realiIsShow}"/>
										<p:inplace editor="true" styleClass="numSmallText marginLeft"
											rendered="#{kpiLevelViewController.realiIsShow}">
											<p:ajax event="save"
												listener="#{kpiLevelViewController.saveKpiWeight(node.kpiweight)}"
												update="tree2 form1:msgs" />
											<p:spinner value="#{node.kpiweight.value}" required="true" size="2"
												stepFactor="0.1" max="1" min="0" label="#{node.kpiweight.value}" />
										</p:inplace>
									</p:treeNode>
									<p:treeNode type="kpiWeightError">
										<p:commandLink value="#{node.child.name}"
											styleClass="nodeText"
											actionListener="#{kpiGroupViewController.onKpiSelect(node.child)}"
											update="kpiDiaForm:kpiDia" oncomplete="PF('kpiDia').show();" />
										<h:outputText value="#{node.child.reliabilityValue}"
											rendered="#{kpiLevelViewController.realiIsShow}"
											styleClass="numLargeText marginLeft marginRight" />
										<h:outputText value="X" styleClass="numSmallText" 
											rendered="#{kpiLevelViewController.realiIsShow}"/>
										<p:inplace editor="true" styleClass="numSmallText marginLeft"
											rendered="#{kpiLevelViewController.realiIsShow}">
											<p:ajax event="save"
												listener="#{kpiLevelViewController.saveKpiWeight(node.kpiweight)}"
												update="tree2 form1:msgs" />
											<p:spinner value="#{node.kpiweight.value}" required="true" size="2"
												stepFactor="0.1" max="1" min="0" label="#{node.kpiweight.value}" />
										</p:inplace>
									</p:treeNode>
									
								<!-- dataSource -->
									<p:treeNode type="dsWeightCorrect">
										<p:commandLink value="#{node.child.name}" styleClass="nodeText"
											actionListener="#{kpiGroupViewController.onSourceSelect(node.child)}"
											update="sourceDiaForm:sourceDia" oncomplete="PF('sourceDia').show();" />
										<p:inplace editor="true" rendered="#{kpiLevelViewController.realiIsShow}"
											styleClass="numLargeText marginLeft marginRight">
											<p:ajax event="save"
												listener="#{kpiLevelViewController.saveDsReliabilityParam(node.child)}"
												update="tree2" />
											<p:spinner value="#{node.child.reliabilityParam}" required="true" size="2"
												stepFactor="1" max="100" min="0" label="#{node.child.reliabilityParam}" />
										</p:inplace>
										<h:outputText value="X" styleClass="numSmallText" 
											rendered="#{kpiLevelViewController.realiIsShow}"/>
										<p:inplace editor="true" styleClass="numSmallText marginLeft"
											rendered="#{kpiLevelViewController.realiIsShow}">
											<p:ajax event="save"
												listener="#{kpiLevelViewController.saveKpiWeight(node.kpiweight)}"
												update="tree2 form1:msgs" />
											<p:spinner value="#{node.kpiweight.value}" required="true" size="2"
												stepFactor="0.1" max="1" min="0" label="#{node.kpiweight.value}" />
										</p:inplace>
									</p:treeNode>
									<p:treeNode type="dsWeightError">
										<p:commandLink value="#{node.child.name}" styleClass="nodeText"
											actionListener="#{kpiGroupViewController.onSourceSelect(node.child)}"
											update="sourceDiaForm:sourceDia" oncomplete="PF('sourceDia').show();" >
											</p:commandLink>
										<p:inplace editor="true" styleClass="numLargeText marginRight marginLeft"
											rendered="#{kpiLevelViewController.realiIsShow}">
											<p:ajax event="save"
												listener="#{kpiLevelViewController.saveDsReliabilityParam(node.child)}"
												update="tree2" />
											<p:spinner value="#{node.child.reliabilityParam}" required="true" size="2"
												stepFactor="1" max="100" min="0" label="#{node.child.reliabilityParam}" />
										</p:inplace>
										<h:outputText value="X" styleClass="numSmallText" 
											rendered="#{kpiLevelViewController.realiIsShow}"/>
										<p:inplace editor="true" styleClass="numSmallText marginLeft"
											rendered="#{kpiLevelViewController.realiIsShow}">
											<p:ajax event="save"
												listener="#{kpiLevelViewController.saveKpiWeight(node.kpiweight)}"
												update="tree2 form1:msgs" />
											<p:spinner value="#{node.kpiweight.value}" required="true" size="2"
												stepFactor="0.1" max="1" min="0" label="#{node.kpiweight.value}" />
										</p:inplace>
										
									</p:treeNode>
								</p:tree>
							</div>
						<!-- panel3 -->
							<div class="chart tab-pane" id="pane3" style="position: relative">
								<p:toolbar>
									<f:facet name="left">
										<button type="button" style="background:#00a65a" class="btn btn-flat margin"></button>成熟指标或数据源
										<button type="button" style="background:#dd4b39" class="btn btn-flat margin"></button>不成熟指标或数据源
									</f:facet>
									<f:facet name="right">
										<p:selectBooleanButton value="#{kpiSourceViewController.realiIsShow}" 
											onLabel="隐藏引用次数" offLabel="显示引用次数" >
											 <p:ajax update="tree3"/>
										</p:selectBooleanButton>
									</f:facet>
								</p:toolbar>
								<p:tree id="tree3" var="node" widgetVar="tree3" dynamic="true" 
									orientation="horizontal"
									value="#{kpiSourceViewController.root}"
									selection="#{kpiSourceViewController.selectedNode}"
									selectionMode="single" animate="true">
								<!-- root -->
									<p:treeNode type="root">
										<p:outputLabel value="#{node}" />
									</p:treeNode>
								<!-- kpi -->
									<p:treeNode type="kpiError">
										<p:commandLink value="#{node.name}"
											styleClass="nodeText"
											actionListener="#{kpiGroupViewController.onKpiSelect(node)}"
											update="kpiDiaForm:kpiDia" oncomplete="PF('kpiDia').show();" />
									</p:treeNode>
									<p:treeNode type="kpiCorrect">
										<p:commandLink value="#{node.name}"
											styleClass="nodeText"
											actionListener="#{kpiGroupViewController.onKpiSelect(node)}"
											update="kpiDiaForm:kpiDia" oncomplete="PF('kpiDia').show();" />
									</p:treeNode>
								<!-- dataSource -->
									<p:treeNode type="dsSizeCorrect">
										<p:commandLink value="#{node.ds.name}" styleClass="nodeText"
											actionListener="#{kpiGroupViewController.onSourceSelect(node.ds)}"
											update="sourceDiaForm:sourceDia" oncomplete="PF('sourceDia').show();" />
										<h:outputText value="#{node.size}" styleClass="numLargeText marginLeft" 
											rendered="#{kpiSourceViewController.realiIsShow}"/>
									</p:treeNode>
									<p:treeNode type="dsSizeError">
										<p:commandLink value="#{node.ds.name}" styleClass="nodeText"
											actionListener="#{kpiGroupViewController.onSourceSelect(node.ds)}"
											update="sourceDiaForm:sourceDia" oncomplete="PF('sourceDia').show();" />
										<h:outputText value="#{node.size}" styleClass="numLargeText marginLeft" 
											rendered="#{kpiSourceViewController.realiIsShow}"/>
									</p:treeNode>
								</p:tree>
							</div>
						</div>
					</div>
				</div>
				<p:remoteCommand name="initTree1" actionListener="#{kpiGroupViewController.init}" update="tree1"/>
				<p:remoteCommand name="initTree2" actionListener="#{kpiLevelViewController.init}" update="tree2"/>
				<p:remoteCommand name="initTree3" actionListener="#{kpiSourceViewController.init}" update="tree3"/>
			</h:form>
			<h:form id="kpiDiaForm">
				<p:dialog id="kpiDia" closable="true" dynamic="true"
					widgetVar="kpiDia" modal="true">
					<p:panelGrid style="width:550px">
						<p:row>
							<p:column style="text-align:center;font-size:20px" colspan="2">
								<p:outputLabel
									value="#{kpiGroupViewController.currentKpi.name}" />
								<p:outputLabel value="指标" />
							</p:column>
						</p:row>
						<p:row>
							<p:column>
								<p:outputLabel style="width:100px" value="指标名称：" />
							</p:column>
							<p:column>
								<p:outputLabel
									value="#{kpiGroupViewController.currentKpi.name}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column>
								<p:outputLabel value="指标目的：" />
							</p:column>
							<p:column>
								<p:outputLabel
									value="#{kpiGroupViewController.currentKpi.kpiTarget}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column>
								<p:outputLabel value="公式描述：" />
							</p:column>
							<p:column>
								<p:outputLabel style="width:400px"
									value="#{kpiGroupViewController.currentKpi.formulaDesc}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column>
								<p:outputLabel value="指标公式：" />
							</p:column>
							<p:column>
								<p:outputLabel style="width:400px"
									value="#{kpiGroupViewController.currentKpi.kpiFormula}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column>
								<p:outputLabel value="数据源描述：" />
							</p:column>
							<p:column>
								<p:outputLabel style="width:400px"
									value="#{kpiGroupViewController.currentKpi.dataSourceDesc}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column>
								<p:outputLabel value="指标用户：" />
							</p:column>
							<p:column>
								<p:outputLabel style="width:400px"
									value="#{kpiGroupViewController.currentKpi.user}" />
							</p:column>
						</p:row>
					</p:panelGrid>
				</p:dialog>
			</h:form>
			<h:form id="sourceDiaForm">
				<p:dialog id="sourceDia" closable="true" dynamic="true"
					widgetVar="sourceDia" modal="true">
					<p:panelGrid style="width:550px">
						<p:row>
							<p:column style="text-align:center;font-size:20px" colspan="2">
								<p:outputLabel
									value="#{kpiGroupViewController.currentDataSource.name}" />
								<p:outputLabel value="数据源" />
							</p:column>
						</p:row>
						<p:row>
							<p:column>
								<p:outputLabel value="数据源名称：" />
							</p:column>
							<p:column>
								<p:outputLabel
									value="#{kpiGroupViewController.currentDataSource.name}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column>
								<p:outputLabel value="本地表名：" />
							</p:column>
							<p:column>
								<p:outputLabel
									value="#{kpiGroupViewController.currentDataSource.tableName}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column>
								<p:outputLabel value="数据源来源：" />
							</p:column>
							<p:column>
								<p:outputLabel
									value="#{kpiGroupViewController.currentDataSource.sourceDesc}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column>
								<p:outputLabel value="是否可获得：" />
							</p:column>
							<p:column>
								<p:outputLabel value="是"
									rendered="#{kpiGroupViewController.currentDataSource.available == true}" />
								<p:outputLabel value="否"
									rendered="#{kpiGroupViewController.currentDataSource.available == false}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column>
								<p:outputLabel value="可靠系数：" />
							</p:column>
							<p:column>
								<p:outputLabel
									value="#{kpiGroupViewController.currentDataSource.reliabilityParam}" />
							</p:column>
						</p:row>
						<p:row>
							<p:column>
								<p:outputLabel value="可靠度描述：" />
							</p:column>
							<p:column>
								<p:outputLabel style="width:400px"
									value="#{kpiGroupViewController.currentDataSource.reliabilityDesc}" />
							</p:column>
						</p:row>
					</p:panelGrid>
				</p:dialog>
			
			</h:form>
		</div>
		</div>
	</ui:define>
	<ui:define name="contentend">
		<script src="kpiGraphChart.js"></script>
		<script>
		$("#tab1").click(function(){
			initTree1();
		});
		$("#tab2").click(function(){
			initTree2();
		});
		$("#tab3").click(function(){
			initTree3();
		});
		</script>
	</ui:define>
</ui:composition>